@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="panel panel-default">
                <div class="panel-heading">Dashboard</div>

                <div class="panel-body">
                    You are logged in!
                </div>
            </div>
        </div>
    </div>
</div>

@foreach ($articles as $article)
    <li style="margin: 50px 0;">
        <div class="title">
            <a href="{{ url('article/'.$article->id) }}">
                <h4>{{ $article->title }}</h4>
            </a>
        </div>
        <div class="body">
            <p>{{ $article->body }}</p>
        </div>
    </li>
@endforeach

@endsection
